import 'package:flutter/material.dart';

class FunctionButtonItem {
  final String imageUrl;
  final String title;
  final Function? onTapHandle;
  FunctionButtonItem(this.imageUrl, this.title, this.onTapHandle);
}

final List<FunctionButtonItem> list = [
  FunctionButtonItem('static/images/home_profile_record.png', "浏览记录", (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'history');
    }
  }),
  FunctionButtonItem('static/images/home_profile_order.png', '我的订单', (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'buy');
    }
  }),
  FunctionButtonItem('static/images/home_profile_favor.png', '肤质数据', (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'skin');
    }
  }),
  FunctionButtonItem('static/images/home_profile_id.png', '身份认证', (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'id');
    }
  }),
  FunctionButtonItem('static/images/home_profile_message.png', '联系我们',  (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'pap');
    }
  }),
  FunctionButtonItem('static/images/home_profile_contract.png', '医美记录', (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'doctor');
    }
  }),
  FunctionButtonItem('static/images/home_profile_wallet.png', '钱包', (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'dollar');
    }
  }),
  FunctionButtonItem('static/images/home_profile_house.png', "购物车管理", (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'roomManage');
    }
  }),
  FunctionButtonItem('static/images/1236(1).png', "小布语音", (context) {
    bool isLogin = true; //假设先设置未登录
    if (isLogin) {
      Navigator.pushNamed(context, 'xiaobu');
    }
  })
];
